static uint16_t sdl_sc_x11[SDL_NUM_SCANCODES] = {0};
static void init_sdl_sc_x11(){
	sdl_sc_x11[1] = 41;
	sdl_sc_x11[2] = 30;
	sdl_sc_x11[3] = 31;
	sdl_sc_x11[4] = 32;
	sdl_sc_x11[5] = 33;
	sdl_sc_x11[6] = 34;
	sdl_sc_x11[7] = 35;
	sdl_sc_x11[8] = 36;
	sdl_sc_x11[9] = 37;
	sdl_sc_x11[10] = 38;
	sdl_sc_x11[11] = 39;
	sdl_sc_x11[12] = 45;
	sdl_sc_x11[13] = 46;
	sdl_sc_x11[14] = 42;
	sdl_sc_x11[15] = 43;
	sdl_sc_x11[16] = 20;
	sdl_sc_x11[17] = 26;
	sdl_sc_x11[18] = 8;
	sdl_sc_x11[19] = 21;
	sdl_sc_x11[20] = 23;
	sdl_sc_x11[21] = 28;
	sdl_sc_x11[22] = 24;
	sdl_sc_x11[23] = 12;
	sdl_sc_x11[24] = 18;
	sdl_sc_x11[25] = 19;
	sdl_sc_x11[26] = 47;
	sdl_sc_x11[27] = 48;
	sdl_sc_x11[28] = 40;
	sdl_sc_x11[29] = 224;
	sdl_sc_x11[30] = 4;
	sdl_sc_x11[31] = 22;
	sdl_sc_x11[32] = 7;
	sdl_sc_x11[33] = 9;
	sdl_sc_x11[34] = 10;
	sdl_sc_x11[35] = 11;
	sdl_sc_x11[36] = 13;
	sdl_sc_x11[37] = 14;
	sdl_sc_x11[38] = 15;
	sdl_sc_x11[39] = 51;
	sdl_sc_x11[40] = 52;
	sdl_sc_x11[41] = 53;
	sdl_sc_x11[42] = 225;
	sdl_sc_x11[43] = 49;
	sdl_sc_x11[44] = 29;
	sdl_sc_x11[45] = 27;
	sdl_sc_x11[46] = 6;
	sdl_sc_x11[47] = 25;
	sdl_sc_x11[48] = 5;
	sdl_sc_x11[49] = 17;
	sdl_sc_x11[50] = 16;
	sdl_sc_x11[51] = 54;
	sdl_sc_x11[52] = 55;
	sdl_sc_x11[53] = 56;
	sdl_sc_x11[54] = 229;
	sdl_sc_x11[55] = 85;
	sdl_sc_x11[56] = 226;
	sdl_sc_x11[57] = 44;
	sdl_sc_x11[58] = 57;
	sdl_sc_x11[59] = 58;
	sdl_sc_x11[60] = 59;
	sdl_sc_x11[61] = 60;
	sdl_sc_x11[62] = 61;
	sdl_sc_x11[63] = 62;
	sdl_sc_x11[64] = 63;
	sdl_sc_x11[65] = 64;
	sdl_sc_x11[66] = 65;
	sdl_sc_x11[67] = 66;
	sdl_sc_x11[68] = 67;
	sdl_sc_x11[69] = 83;
	sdl_sc_x11[70] = 71;
	sdl_sc_x11[71] = 95;
	sdl_sc_x11[72] = 96;
	sdl_sc_x11[73] = 97;
	sdl_sc_x11[74] = 86;
	sdl_sc_x11[75] = 92;
	sdl_sc_x11[76] = 93;
	sdl_sc_x11[77] = 94;
	sdl_sc_x11[78] = 87;
	sdl_sc_x11[79] = 89;
	sdl_sc_x11[80] = 90;
	sdl_sc_x11[81] = 91;
	sdl_sc_x11[82] = 98;
	sdl_sc_x11[83] = 99;
	sdl_sc_x11[84] = 154;
	sdl_sc_x11[85] = 257;
	sdl_sc_x11[86] = 100;
	sdl_sc_x11[87] = 68;
	sdl_sc_x11[88] = 69;
	sdl_sc_x11[89] = 74;
	sdl_sc_x11[90] = 82;
	sdl_sc_x11[91] = 75;
	sdl_sc_x11[92] = 80;
	sdl_sc_x11[93] = 275;
	sdl_sc_x11[94] = 79;
	sdl_sc_x11[95] = 77;
	sdl_sc_x11[96] = 81;
	sdl_sc_x11[97] = 78;
	sdl_sc_x11[98] = 73;
	sdl_sc_x11[99] = 76;
	sdl_sc_x11[100] = 88;
	sdl_sc_x11[101] = 228;
	sdl_sc_x11[102] = 72;
	sdl_sc_x11[103] = 70;
	sdl_sc_x11[104] = 84;
	sdl_sc_x11[105] = 230;
	sdl_sc_x11[107] = 227;
	sdl_sc_x11[108] = 231;
	sdl_sc_x11[109] = 101;
	sdl_sc_x11[110] = 104;
	sdl_sc_x11[111] = 105;
	sdl_sc_x11[112] = 106;
	sdl_sc_x11[113] = 107;
	sdl_sc_x11[114] = 108;
	sdl_sc_x11[115] = 135;
	sdl_sc_x11[118] = 103;
	sdl_sc_x11[121] = 138;
	sdl_sc_x11[123] = 139;
	sdl_sc_x11[125] = 137;
	sdl_sc_x11[132] = 102;
	sdl_sc_x11[133] = 127;
	sdl_sc_x11[134] = 129;
	sdl_sc_x11[135] = 128;
	sdl_sc_x11[136] = 117;
	sdl_sc_x11[137] = 120;
	sdl_sc_x11[138] = 121;
	sdl_sc_x11[140] = 122;
	sdl_sc_x11[142] = 124;
	sdl_sc_x11[144] = 125;
	sdl_sc_x11[145] = 126;
	sdl_sc_x11[146] = 123;
	sdl_sc_x11[153] = 41;
	sdl_sc_x11[154] = 30;
	sdl_sc_x11[155] = 31;
	sdl_sc_x11[156] = 32;
	sdl_sc_x11[157] = 33;
	sdl_sc_x11[158] = 34;
	sdl_sc_x11[159] = 35;
	sdl_sc_x11[160] = 36;
	sdl_sc_x11[161] = 37;
	sdl_sc_x11[162] = 38;
	sdl_sc_x11[163] = 39;
	sdl_sc_x11[164] = 45;
	sdl_sc_x11[165] = 46;
	sdl_sc_x11[166] = 42;
	sdl_sc_x11[167] = 43;
	sdl_sc_x11[168] = 20;
	sdl_sc_x11[169] = 26;
	sdl_sc_x11[170] = 8;
	sdl_sc_x11[171] = 21;
	sdl_sc_x11[172] = 23;
	sdl_sc_x11[173] = 28;
	sdl_sc_x11[174] = 24;
	sdl_sc_x11[175] = 12;
	sdl_sc_x11[176] = 18;
	sdl_sc_x11[177] = 19;
	sdl_sc_x11[178] = 47;
	sdl_sc_x11[179] = 48;
	sdl_sc_x11[180] = 40;
	sdl_sc_x11[181] = 224;
	sdl_sc_x11[182] = 4;
	sdl_sc_x11[183] = 22;
	sdl_sc_x11[184] = 7;
	sdl_sc_x11[185] = 9;
	sdl_sc_x11[186] = 10;
	sdl_sc_x11[187] = 11;
	sdl_sc_x11[188] = 13;
	sdl_sc_x11[189] = 14;
	sdl_sc_x11[190] = 15;
	sdl_sc_x11[191] = 51;
	sdl_sc_x11[192] = 52;
	sdl_sc_x11[193] = 53;
	sdl_sc_x11[194] = 225;
	sdl_sc_x11[195] = 49;
	sdl_sc_x11[196] = 29;
	sdl_sc_x11[197] = 27;
	sdl_sc_x11[198] = 6;
	sdl_sc_x11[199] = 25;
	sdl_sc_x11[200] = 5;
	sdl_sc_x11[201] = 17;
	sdl_sc_x11[202] = 16;
	sdl_sc_x11[203] = 54;
	sdl_sc_x11[204] = 55;
	sdl_sc_x11[205] = 56;
	sdl_sc_x11[206] = 229;
	sdl_sc_x11[207] = 85;
	sdl_sc_x11[208] = 226;
	sdl_sc_x11[209] = 44;
	sdl_sc_x11[210] = 57;
	sdl_sc_x11[211] = 58;
	sdl_sc_x11[212] = 59;
	sdl_sc_x11[213] = 60;
	sdl_sc_x11[214] = 61;
	sdl_sc_x11[215] = 62;
	sdl_sc_x11[216] = 63;
	sdl_sc_x11[217] = 64;
	sdl_sc_x11[218] = 65;
	sdl_sc_x11[219] = 66;
	sdl_sc_x11[220] = 67;
	sdl_sc_x11[221] = 83;
	sdl_sc_x11[222] = 71;
	sdl_sc_x11[223] = 95;
	sdl_sc_x11[224] = 96;
	sdl_sc_x11[225] = 97;
	sdl_sc_x11[226] = 86;
	sdl_sc_x11[227] = 92;
	sdl_sc_x11[228] = 93;
	sdl_sc_x11[229] = 94;
	sdl_sc_x11[230] = 87;
	sdl_sc_x11[231] = 89;
	sdl_sc_x11[232] = 90;
	sdl_sc_x11[233] = 91;
	sdl_sc_x11[234] = 98;
	sdl_sc_x11[235] = 99;
	sdl_sc_x11[236] = 154;
	sdl_sc_x11[237] = 257;
	sdl_sc_x11[238] = 100;
	sdl_sc_x11[239] = 68;
	sdl_sc_x11[240] = 69;
	sdl_sc_x11[241] = 135;
	sdl_sc_x11[244] = 138;
	sdl_sc_x11[245] = 136;
	sdl_sc_x11[246] = 139;
	sdl_sc_x11[248] = 88;
	sdl_sc_x11[249] = 228;
	sdl_sc_x11[250] = 84;
	sdl_sc_x11[251] = 70;
	sdl_sc_x11[252] = 230;
	sdl_sc_x11[254] = 74;
	sdl_sc_x11[255] = 82;
}
